<template>
	<view class="content">
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item,index) in list" :key="item.id" style="height: 500px; color: pink;">
				<view class="swiper-item" >
					<image :src= "item.images" mode="" style="width: 100%;height: 150px;"></image>
				</view>
			</swiper-item>
		</swiper>
		<uni-section title="有事在这找" sub-title="" type="square">
			
		
		<uni-grid :column="4">
			<uni-grid-item v-for="(item,index) in typelist" :key="item.id">
				<view class="grid-item">
				<image :src="item.icon" mode="" style="width: 60px ; height: 60px;"></image>
				<text>{{item.typename}}</text>
				</view>
			</uni-grid-item>
			
		</uni-grid>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				"typelist": [{
						"id": 1,
						"typename": "体育",
						"icon": "../../static/113.png"
					},
					{
						"id": 2,
						"typename": "地图",
						"icon": "../../static/114.png"
					},
					{
						"id": 3,
						"typename": "娱乐",
						"icon": "../../static/115.png"
					},
					{
						"id": 4,
						"typename": "学习",
						"icon": "../../static/116.png"
					},
					{
						"id": 5,
						"typename": "成绩",
						"icon": "../../static/117.png"
					},
					{
						"id": 6,
						"typename": "奖项",
						"icon": "../../static/118.png"
					},
					{
						"id": 7,
						"typename": "计划",
						"icon": "../../static/119.png"
					},
				
					{
						"id": 8,
						"typename": "邮件",
						"icon": "../../static/120.png"
					}
				],
				list:[
					{"id":1,"images":"../../static/1.png"},
					{"id":2,"images":"../../static/2.png"}
				]
			}
			
		}
		
	}
</script>

<style>
	.swiper-item{
		display: flex;
		width: 100%;
		height: 500px;
		color: pink;
	}
	.grid-item{
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		margin-top: 10px;
	}
</style>
